package cn.yedong;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
//声明这是一个启动类；复合注解，开启静态资源放行，开启spring对mvc的支持；扫描包路径，当前包及其子包
@SpringBootApplication
//扫描mapper包，生成mapper代理对象，才能被注入
@MapperScan("cn.yedong.*.mapper")
public class App {
    public static void main(String[] args) {
        SpringApplication.run(App.class);
    }
}
